]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
search: Don't bother clearing the result display twice
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 11 Sep 2014 21:36:40 +0000 (15:36 -0600)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 11 Sep 2014 23:10:25 +0000 (17:10 -0600)
It's just extra work, and breaks our hide/show hack to prevent the
flashing on search results.

js/ui/search.js

index 47ab3acdc1ebfe36f28e1637f742702735f7d874..80b2d08fc865c40e33b84492d90dc5c5fe98dbba 100644 (file)
@@ -335,9 +335,10 @@ const SearchResultsBase = new Lang.Class({
             let hasMoreResults = results.length < providerResults.length;
 
             this._ensureResultActors(results, Lang.bind(this, function(successful) {
-                this._clearResultDisplay();
-                if (!successful)
+                if (!successful) {
+                    this._clearResultDisplay();
                     return;
+                }
 
                 // To avoid CSS transitions causing flickering when
                 // the first search result stays the same, we hide the